﻿using System;
using UnityEngine;

// Token: 0x020000A9 RID: 169
public class RigidToDynamic : MonoBehaviour
{
	// Token: 0x06000545 RID: 1349 RVA: 0x0001EF74 File Offset: 0x0001D174
	private void Start()
	{
		this.rig = base.GetComponent<Rigidbody>();
	}

	// Token: 0x06000546 RID: 1350 RVA: 0x0001EF84 File Offset: 0x0001D184
	private void Update()
	{
		if (this.rig.isKinematic)
		{
			this.timer += Time.deltaTime;
			if (this.timer >= this.unlockTime)
			{
				this.rig.isKinematic = false;
			}
		}
	}

	// Token: 0x0400044F RID: 1103
	private Rigidbody rig;

	// Token: 0x04000450 RID: 1104
	public float unlockTime = 1f;

	// Token: 0x04000451 RID: 1105
	private float timer;
}
